Skip to content

refactor: simplify meta instruction and remove duplicate delegate description#531

Merged
FL4TLiN3 merged 4 commits intomainfrom
refactor/simplify-meta-instruction
Feb 15, 2026
Merged

refactor: simplify meta instruction and remove duplicate delegate description#531
FL4TLiN3 merged 4 commits intomainfrom
refactor/simplify-meta-instruction

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Simplify getMetaInstruction from ~30 lines to ~6 lines by removing redundant agent loop explanations, hypothesis/verification instructions, per-iteration tool call restrictions, and overly emphatic language that frontier models already understand from pretraining
  • Remove getDelegateRules function and its system prompt section — delegate.description is already provided to the LLM via tool definitions in DelegateSkillManager._doInit(), making the system prompt copy a pure duplication
  • Remove the now-unused experts parameter from createInstructionMessage

Test plan

  • pnpm typecheck@perstack/runtime passes (pre-existing failures in create-expert/perstack apps are unrelated)
  • pnpm test -- packages/runtime/src/messages/message.test.ts — all 17 tests pass
  • pnpm test — all 1088 tests pass across 100 test files

🤖 Generated with Claude Code

FL4TLiN3 and others added 4 commits February 15, 2026 15:00
…cription

Reduce token waste and attention dilution by trimming redundant meta
instruction (~30 lines → ~6 lines) and removing getDelegateRules which
duplicated delegate.description already provided via tool definitions in
DelegateSkillManager.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 35525ea into main Feb 15, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 15, 2026
@FL4TLiN3 FL4TLiN3 deleted the refactor/simplify-meta-instruction branch February 25, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant